package com.bawei.module_home.state

import com.bawei.lib_common.entity.SendCommentEntity
import com.bawei.module_home.model.entity.SimpleTypeEntity
import com.bawei.lib_common.entity.SimpleVideoEntityItem
import com.bawei.lib_common.entity.VideoCommentEntityItem

sealed class SimpleTypeState {
    /**
     * 成功获取视频类型信息
     */
    data class SimpleTypeSuccess(val list: List<SimpleTypeEntity>?) : SimpleTypeState()
    /**
     * 根据ChannelId获取对应视频信息
     */
    data class SimpleVideoSuccess(val list: List<SimpleVideoEntityItem>?) : SimpleTypeState()
    /**
     * 获取视频评论信息
     */
    data class SimpleVideoCommentSuccess(val list: List<VideoCommentEntityItem>?) : SimpleTypeState()
    /**
     * 发送评论成功
     */
    data class SimpleVideoCommentSendSuccess(val entity: SendCommentEntity?) : SimpleTypeState()
    /**
     * 删除评论成功
     */
    data class SimpleVideoCommentDeleteSuccess(val isSuccess: Boolean?) : SimpleTypeState()
    /**
     * 点赞成功
     */
    data class SimpleVideoCommentAgreeSuccess(val isSuccess: Boolean?) : SimpleTypeState()
    /**
     * 取消点赞成功
     */
    data class SimpleVideoCommentCancelAgreeSuccess(val isSuccess: Boolean?) : SimpleTypeState()

    /**
     * 获取失败
     */
    data class Failed(val msg: String) : SimpleTypeState()

    /**
     * 空数据
     */
    object Empty : SimpleTypeState()

    /**
     * 初始情况
     */
    object Init : SimpleTypeState()
}